/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.rcs.folders;

import java.util.List;

/**
 *
 * @author pablo
 */
public class WrapperFolder extends WrapperItem implements VirtualFolder {

  public WrapperFolder(VirtualFolder folder, String name) {
    super(folder, name);
  }

  @Override
  public VirtualItem child(String childName) {
    return getItem().child(childName);
  }

  @Override
  public VirtualItem childFromDisplayName(String name) {
    return getItem().childFromDisplayName(name);
  }

  @Override
  public List<? extends VirtualItem> getChildren() {
    return getItem().getChildren();
  }

  @Override
  public VirtualFolder getItem() {
    return (VirtualFolder) super.getItem();
  }
}
